$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, .4);
    }

    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 100vh;
    }

    .text {
      position: absolute;
      left: 12vw;
      top: 220/$f+vw;
      z-index: 10;
      width: 50vw;

      .links {
        display: flex;

        a,
        p,
        span {
          color: rgba(255, 255, 255, .6);
          font-size: 24/$f+vw;
          text-transform: uppercase;
        }

        a {
          transition: all 600ms;

          &:hover {
            color: #E60012;
          }
        }

        span {
          margin: 0 1vw;
        }
      }

      .t1 {
        color: #FFF;
        font-size: 20/$f+vw;
        margin: 62/$f+vw 0 32/$f+vw 0;

        &::after {
          display: block;
          width: 174/$f+vw;
          height: 4/$f+vw;
          background: #E60012;
          content: '';
          margin-top: 5px;
        }
      }

      .t2 {
        font-size: 64/$f+vw;
        color: white;
        font-weight: 700;
        text-transform: uppercase;
      }

      .des {
        color: #FFF;
        font-size: 20/$f+vw;
        line-height: 1.6;
        margin-top: 76/$f+vw;
      }
    }
  }

  .main {
    margin: 80/$f+vw 200/$f+vw;

    .t {
      color: rgba(26, 32, 44, 1);
      font-size: 64/$f+vw;
      font-weight: 600;

      &::before {
        width: 113/$f+vw;
        height: 4/$f+vw;
        content: '';
        display: block;
        background: #E60012;
        margin-bottom: 36/$f+vw;
      }
    }

    .allItems {
      display: flex;
      flex-wrap: wrap;
      width: 103.2%;
      margin-left: -1.6%;
      margin-top: 4vw;

      .item {
        width: 23%;
        margin-left: 1.6%;
        margin-bottom: 4vw;

        .pic {
          overflow: hidden;

          img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }

        .name {
          color: #000;
          font-size: 24/$f+vw;
          text-transform: capitalize;
          margin: 2vw 0 1vw 0;
          height: 70/$f+vw;
          line-height: 1.4;
          word-break: break-all;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
        }

        .more {
          display: flex;
          align-items: center;
          transition: all 500ms;
          background: #F6F6F6;
          width: fit-content;
          padding: 1vw 2.5vw;

          p {
            color: #333;
            font-size: 20/$f+vw;
            font-weight: 500;
            transition: all 500ms;
          }

          svg {
            width: 20/$f+vw;
            margin-left: 1vw;

            path {
              transition: all 500ms;
              stroke: #333333;
            }
          }
        }

        &:hover {
          .pic {
            img {
              transform: scale(1.05);
            }
          }

          .more {
            background: #E60012;

            p {
              color: white;
            }

            svg {
              path {
                stroke: white;
              }
            }
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .text{
        left: 5%;
        top:60px;
        width: 90%;
        .links{
          a,p,span{
            font-size: 16px;
          }
        }
        .t1{
          font-size: 16px;
          margin: 30px 0 15px 0;
          &::after{
            width: 50px;
            height: 2px;
          }
        }
        .t2{
          font-size: 32px;
        }
        .des{
          font-size: 16px;
          margin-top: 30px;
        }
      }
    }
    .main{
      margin: 30px 5%;
      .t{
        font-size: 32px;
        &::before{
          width: 60px;
          height: 2px;
        }
      }
      .allItems{
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
        .item{
          width: 100%;
          margin-left: 0;
          margin-bottom: 40px;
          .name{
            font-size: 18px;
            height: auto;
            margin: 20px 0;
          }
          .more{
            padding: 10px 20px;
            p{
              font-size: 16px;
            }
            svg{
              width: 15px;
              margin-left: 10px;
            }
          }
        }
      }
    }
  }
}